<template>
  <div>
    <mt-swipe :auto="4000">
      <mt-swipe-item v-for="item in swiperImgList" :key="item.url">
        <img :src="item.img" alt="" :class="{ full: isfull }">
        <!-- 无奈而为之 -->
        <!-- <img src="../../images/1.jpg" alt> -->
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
  props:['swiperImgList', 'isfull']
}
</script>

<style>
  .mint-swipe {
    height: 200px;
    text-align: center;
  }

  .mint-swipe-item img {
    height: 100%;
  }

  .full {
    width: 100%
  }
</style>
